<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>管理后台</title>
<link href="Css/css.css" rel="stylesheet" type="text/css" />
<link href="Css/default1.css.css" rel="stylesheet" type="text/css" />
<script>
<!--
function fnOnSubmit(){
	if(document.getElementById('postfile').value == ''){
		alert('请选择图片！');
		return false;
	}
}
-->
</script>
</head>

<body>
<div id="main_title"><a href="#">后台管理中心</a>—上传图片</div>
<div id="main_content">
  <form action="<?php echo $this->_url('save') ?>" method="post" enctype="multipart/form-data" name="form1" id="form1" onsubmit="return fnOnSubmit(this);">
   <table width="100%" border="0" cellspacing="2" cellpadding="2">
   		<?php
        if($_REQUEST['filename']){
		?>
   		<tr>        
		  <td colspan="2" style="padding-left:120px;">上传成功： <a href="../Upload/<?=$_REQUEST['filename']?>" target="_blank"><?=$_REQUEST['filename']?></a></td>
	    </tr>
        <tr>        
		  <td colspan="2">&nbsp;</td>
	    </tr>
        <?php
		}
		?>
        <?php
        if($_REQUEST['error']){
		?>
   		<tr>        
		  <td colspan="2" style="color:red; padding-left:100px; font-size:14px;">失败： <?=$_REQUEST['error']?></td>
	    </tr>
        <tr>        
		  <td colspan="2">&nbsp;</td>
	    </tr>
        <?php
		}
		?>
        <tr>        
		  <td class="title">资讯图片</td>
		  <td><input name="postfile" id="postfile" type="file" size="40" /></td>
	    </tr>
        <tr>        
		  <td colspan="2" style="color:red; padding-left:120px;">允许的文件类型有:gif,png,jpg,jpeg,swf</td>
	    </tr>
        <tr>        
		  <td colspan="2">&nbsp;</td>
	    </tr>    
		<tr>
		  <td colspan="2" style="padding-left:230px;">
              <button type="submit" name="Save" id="Save" class="btnA">发布</button>&nbsp;&nbsp;
              <input name="Cancel" type="button" id="Cancel" value="<?php echo h(_T('ui_g_cancel')); ?>" onclick="fnOnBack();" />
          </td>
	    </tr>
		<tr>
		  <td>&nbsp;</td>
		  <td>&nbsp;</td>
		</tr>
	</table>
  </form>
</div>
<div id="main_copy">Copyright&copy;2003 – 2009 ITeam Monkey. All Rights Reserved ITeam Monkey 版权所有 </div>
</body>
</html>
